﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage" %>
<% if (Request.IsAuthenticated) { %>
    <div style="padding-right: 7px; padding-top: 5px;font-size:15px;">
    <div class="float-right" style="color:white; font-size: 14px;padding-top: 4px;">
        <div>
                <% using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm", style="border-radius:2px;" })) { %>
                <%: Html.AntiForgeryToken() %>
                <a href="javascript:document.getElementById('logoutForm').submit()">Log off</a>
                <% } %>

        </div>
    </div>
    <div class="float-right" style="color:white; font-size: 18px;padding-top: 2px;">!</div>
    <div class="float-right" style="color:white; font-size: 18px !important;padding-top: 2px;font-weight:200;padding-left:6px;"><%: User.Identity.Name %></div>
    <div class="float-right" style="color:white; font-size: 18px; padding-top:2px">Hello,</div>
    <div style="clear:both"></div>
    </div>
    

<% } else { %>
    <ul>
        <li><%: Html.ActionLink("Register", "Register", "Account", routeValues: null, htmlAttributes: new { id = "registerLink" })%></li>
        <li><%: Html.ActionLink("Log in", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" })%></li>
    </ul>
<% } %>